FileNameSplit

 

The 'FileNameSplit' function splits the file name of the specified file into each section.

 

void FileNameSplit(string file_name, string drive, string dir, string name, string ext);

 

Parameters

string file_name : file name including the absolute path

string drive : buffer in where you want to store the drive of the full file name

string dir : buffer in where you want to store the directory of the full file name

string name : buffer in where you want to store the file of the full file name

string ext : buffer in where you want to store the file extension of the full file name

 

Return Value

none

 

Example

@FileNameSplit("C:\\EX\\TEXT1.TXT", $drive, $dir, $name, $ext);

Description : The above statement splits 'C:\\EX\\TEXT1.TXT' into each section. ( $drive = C:,  $dir = \EX\, $name = TEXT1, $ext = .TXT )